﻿using QMERP.Domain.Entities;

namespace QMERP.Infrastructure.EFCore.Extensions
{
    public static class AppExtension
    {
        public static IQueryable<App> GetBasicApps(this IQueryable<App> query, params string[] types)
        {
            if (types.Length > 0)
                query = query.Where(x => types.Contains(x.Type));
            return query;
        }
    }
}
